#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include<vector>
using namespace std;

int main() {
    vector<int> v;
    int num = 0;
    for (int i = 0; i < v.size(); i++)
    {
        int ret = 0;
        for (int j = i; j < v.size(); j++)
        {
            ret += v[j];
            num = max(ret, num);
        }
    }
    cout << num << endl;
}